<template>
  <view class="content">
    <view>
      <u-button>默认按钮</u-button>
      <u-button type="primary">主要按钮</u-button>
      <u-button type="success">成功按钮</u-button>
      <u-button type="info">信息按钮</u-button>
      <u-button type="warning">警告按钮</u-button>
      <u-button type="error">危险按钮</u-button>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  onShow() {
    // 从本地存储取出token
    //   const token =uni.getStorageSync('user_token')
    //   console.log('token:',token)
    //   const openid =uni.getStorageSync('open_id')
    //   console.log('openid',openid)
    //  if(!token){
    // 	  uni.redirectTo({ url: '/pages/login/index'})
    //  }
  },
  methods: {},
};
</script>

<style></style>
